package com.vipshop.activity;

import com.vipshop.activity.R;
import com.vipshop.activity.base.BaseActivity;
import com.vipshop.util.MyLog;
import com.vipshop.util.Utils;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ManagerActivity extends BaseActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.header_menu);
//		Button view = (Button)findViewById(R.id.btn);
//		view.setText(this.getClass().getSimpleName());
//		view.setOnClickListener(new OnClickListener() {
//
//			public void onClick(View v) {
//				// TODO Auto-generated method stub
//				Intent intent = new Intent(ManagerActivity.this,OneActivity.class);
//				showActivity(intent);
//			}
//		});
		MyLog.debug(getClass(), ManagerActivity.class.getSimpleName());
	}




	@Override
	protected void onDisplay(String callerName, Activity caller, Object...params) {
		// TODO Auto-generated method stub
		if(Utils.notNull(params) &&  params.length >0){
			MyLog.error(getClass(), "-------------params:"+params[0]);
		}
		setHomeTitle(this.getClass().getSimpleName());
	}


	@Override
	public Object onConnection(int action, Object... params) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}


	@Override
	public void onProcessData(int action, Object data, Object... params) {
		// TODO Auto-generated method stub

	}


	@Override
	public void onException(int action, Exception exception, Object... params) {
		// TODO Auto-generated method stub

	}




	@Override
	protected void onLeave(String callerName, Activity caller, Object... params) {
		// TODO Auto-generated method stub
		MyLog.debug(getClass(), "onLeave:"+callerName+"\t"+caller.getClass().getSimpleName());
	}
}
